/***********************************************************
  > File Name: test.cc
  > Author: Huberyee
  > Mail: 923506068@qq.com
  > Created Time: Fri 16 Sep 2022 11:00:46 AM CST
  > Modified Time:Fri 16 Sep 2022 11:00:46 AM CST
 *******************************************************/
#include "../../include/hiRedis.hh"
#include "../../include/Configuration.hh"
#include <iostream>

using std::cin;
using std::cout;
using std::endl;

void test0(){
    Configuration *conf = Configuration::getInstance("../../conf/serverConf.conf");
    /* HiRedis redis("127.0.0.1",6379); */
    HiRedis redis(conf);
    redis.connect();
    redis.set("nihao","30");
    cout << redis.get("nihao") << endl;
    Configuration::destroyIns();
}

int main(){
    test0();
    return 0;
}

